47b75b1518805488621050d7ede23b6a09e868e1,portal-impl/src/com/liferay/portal/deploy/hot/HookHotDeployListener.java,HookHotDeployListener,destroyPortalProperties,#String#Properties#,393

Before Change


		}

		if (portalProperties.containsKey(PropsKeys.CAPTCHA_ENGINE_IMPL)) {
			CaptchaImpl captchaImpl = (CaptchaImpl)CaptchaUtil.getCaptcha();

			captchaImpl.setCaptcha(null);
		}

After Change


		}

		if (portalProperties.containsKey(PropsKeys.CAPTCHA_ENGINE_IMPL)) {
			Captcha captcha = CaptchaUtil.getCaptcha();

			CaptchaImpl captchaImpl;

			if (captcha instanceof DoPrivilegedBean) {
				DoPrivilegedBean doPrivilegedBean = (DoPrivilegedBean)captcha;

				captchaImpl = (CaptchaImpl)doPrivilegedBean.getActualBean();
			}
			else {
				captchaImpl = (CaptchaImpl)captcha;
			}

			captchaImpl.setCaptcha(null);